@import '@/app/styles/variables';

.profile,
.avatar,
.loginButton {
  height: 56px;
  position: relative;
}

.avatar_container {
  display: flex;
  margin-left: 32px;
}

.avatar {
  display: block;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  border-radius: 100%;
  overflow: hidden;
}

@include media-min(xs) {
  .modal_container {
    &:hover {

      .modal,
      .modal:hover {
        display: flex;
      }
    }
  }
}

.modal_wrapper {
  padding: 20px 0 0;
  position: absolute;
  right: 0;
  top: 50px;
}

.modal {
  display: none;
  width: 336px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  position: relative;
  border-radius: 32px;
  background: var(--Simple-Morning, #fff);
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
}

.loginButton {
  width: 136px;
}

.premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.linkAuth {
  text-decoration: none;

  &:hover {
    color: white;
  }
}

.span {
  width: 100%;
}

.link {
  text-decoration: none;
  color: #000;
}

.profile,
.avatar {
  aspect-ratio: 1;
  cursor: pointer;
}

.avatar {
  padding: 0px;
}

.item {
  display: flex;
  align-items: center;
  border: 0;
  outline: 0;
  background-color: transparent;
  justify-content: flex-start;
  width: 100%;
  border-radius: 16px;
  padding: 16px;
  gap: 16px;
  color: var(--Simple-Red-Day, #ec3333);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  cursor: pointer;
  max-height: 58px;

  svg {
    min-width: 23px;
  }

  &:hover {
    background-color: #f3f3f3;
  }
}

.loginButton {
  font-size: 20px;
  line-height: 26px;
}

@include media(lg) {
  .premium {
    svg {
      display: none;
    }
  }

  .item {
    color: var(--Simple-Red-Day, #ec3333);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    border-radius: 0px;
    line-height: 22px;
    cursor: pointer;
    max-height: 58px;
    padding-left: 16px;

    &:hover {
      border-radius: 16px;
      background-color: #f3f3f3;
    }
  }

  .modal_wrapper {
    top: 30px;
  }
}

@include media(sm) {
  .avatar_container {
    margin: 0;
  }

  .windowScrolled {
    padding-bottom: 20px;
  }

  .profile,
  .avatar {
    aspect-ratio: 1;
    padding: 0px;
  }

  .item {
    color: var(--Simple-Red-Day, #ec3333);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    border-radius: 0px;
    line-height: 22px;
    cursor: pointer;
    max-height: 58px;
    padding-left: 16px;

    &:hover {
      border-radius: 16px;
      background-color: #f3f3f3;
    }
  }

  .profile,
  .avatar,
  .loginButton {
    height: 40px !important;
    width: 40px;
  }

  .avatar {
    svg {
      transform: translate(-8px, -8px) scale(calc(40 / 56));
    }
  }

  .loginButton {
    font-size: 18px;
    line-height: 24px;
    margin-left: 0px;

    box-sizing: content-box;
    height: 26px;
  }
}

@include media(xs) {
  .item {
    color: var(--Simple-Red-Day, #ec3333);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    border-radius: 0px;
    line-height: 22px;
    cursor: pointer;
    max-height: 58px;
    padding-left: 0px;

    &:not(:last-child) {
      border-bottom: 1px solid var(--Simple-Gray-Morning, #f3f3f3);
    }

    &:hover {
      border-radius: 0px;
      background-color: white;
    }
  }
}

.linkAuth {
  text-decoration: none;

  &:hover {
    color: white;
  }
}

.avatar_photo {
  border-radius: 50%;
  position: relative;
  z-index: 0;
  display: flex;
  position: relative;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 150px;
  background: var(--Pastel-Pink, #ffebef);
}


@include media(sm) {
  .loginText {
    display: none;
  }

  .loginButton {
    padding: 0;
    background-color: transparent;
  }

  .avatar_photo {
    align-self: center;
  }

}


.badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}